﻿<%@ WebHandler Language="C#" Class="checkverificationcode" %>

using System;
using System.Web;
using System.Web.SessionState;
//
using jtbc;
using jtbc.plus;

public class checkverificationcode : IHttpHandler, IReadOnlySessionState
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        string tvalcode = cls.getString(request.form("valcode"));
        string tmpstr = "false"; //验证码错误
        if (com.ckValcodes(tvalcode))
        {
            tmpstr = "true"; //验证码正确
        }
        context.Response.Write(tmpstr);
        context.Response.End();
    }

    public bool IsReusable
    {
        get
        {
            return true;
        }
    }

}